package com.spring.showcase.jaxws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.spring.showcase.controllers.AsyncController;
import com.spring.showcase.domain.User;

@WebService(serviceName = "defer")
// default http://localhost:8080/defer
public class DeferredResultWebService implements WebServiceInterface {

	@Override
	@WebMethod
	public void setResult(@WebParam(name = "username") String userName) {
		AsyncController.result.setResult(new User(userName));
	}

}
